package com.mrx.xfriendship.telnet;

import java.util.StringJoiner;

import static com.mrx.xfriendship.telnet.Constants.DELIMITER;

/**
 * @author Mr.X
 * @since 2023-01-23 13:07
 */
public abstract class TelnetUtils {

    public static String getStringWithDelimiter(String str, String... beforeDelimiter) {
        StringJoiner joiner = new StringJoiner(" ", str, DELIMITER);
        for (String s : beforeDelimiter) joiner.add(s);
        return joiner.toString();
    }

}
